<template>
  <div>
    <TopNav :form-key="formKey" />
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </div>
</template>

<script>
import TopNav from "@/views/formgen/components/FormDesign/TopNav.vue";

export default {
  name: "FormEditor",
  components: {
    TopNav
  },
  data() {
    return {
      formKey: ""
    };
  },
  computed: {},
  created() {
    this.formKey = this.$route.query.key;
  },
  methods: {}
};
</script>
